# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html

#制定数据的输出
class DoubanmoviePipeline(object):
    def process_item(self, item, spider):

        #在控制台输出数据
        #item中
        #print('电影排名：{0}'.format(item['Mov_Rank'][0]))
        #print('电影名称：{0}'.format(item['Mov_Name'][0]))
        #print(type(item['Mov_abstract'][0].strip('\n')))
        #print(type(item['Mov_abstract']))
        #print('电影简介：{0}'.format(item['Mov_abstract'][0].strip().strip('\n')))
        return item
